this is not a guide, just my process, although if you have any question, feel free to contact me
(i could also apply the theseus boat approach and hack around some drivers based on epdiy and a raspberry pi pico but where's the fun in that?)
so i have made some investigation about this, my kindle model does not have an internal sd card port, just an emmc chip :( taking this into account, i have these options
more on this approach: i need to find 1 SPI port on the PCB of my kindle, which i think could be easy? using an oscilloscope and searching for the CLK pad and assuming that MISO and MOSI are close to it.
now, on the software side, the linux kernel on the kindle was only compiled for kernelmode SPI access, no usermode. this is easy to solve, just recompile and flash. but just before i did that, i became aware of a particular file on the source of the linux kernel.
mmc_spi.c
this file implements a driver in a device tree fashion which needs to be compiled into a blob and acts like a "plugin" to the kernel and handling all the SPi -> SD communication all by itself that it even mounts it to the filesystem. neat huh ;) (this site uses the exact same approach but for a rpi)
the device-tree-compiler needed to actually load this driver was not installed on my kindle but a simple package unpackaging from debian's armel repos worked great.
this approach sounds very straight forward but for the moment i have no acess to an oscilloscope so until my next kindle hacking post, bye